import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import '../../model/award_model.dart';

import '../../../../helper/utils/util.dart';
import '../index.dart';

/// hello
class HomeCell extends GetView<HomeController> {
  const HomeCell({
    Key? key,
    required this.md,
    this.onTap,
  }) : super(key: key);
  final AwardModel md;
  final VoidCallback? onTap;
  @override
  Widget build(BuildContext context) {
    return InkWell(
      onTap: onTap,
      child: Container(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            loadImage(
                url: md.icon, width: 120.r, height: 120.r, borderradius: 60.r),
            SizedBox(
              height: 10.r,
            ),
            Text(md.text ?? ''),
          ],
        ),
      ),
    );
  }
}
